<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/media.css">
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #ff339a
        }

        body {
            font-size: 16px;
        }

        a {
            color: #000;
            text-decoration: none;
        }

        .w {
            width: 10rem;
            margin: auto;
        }

        .header {
            width: 10rem;
            height: 1.1467rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4px;
        }

        .header input {
            width: 7.7867rem;
            height: .8rem;
            border-radius: .4rem;
            border: 1px solid #ddd;
            outline: none;
            padding-left: 10px;
            background-color: #f3f4f5;
        }

        .header img {
            width: .56rem;
            height: .56rem;
        }

        .nav {
            margin-top: .1333rem;
            width: 10rem;
            height: .9333rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4px;
        }

        .nav a {
            display: inline-block;
            height: 100%;
        }

        .nav img {
            width: .48rem;
            height: .3467rem;
        }

        .active {
            color: var(--primary-color);
            border-bottom: .0267rem solid var(--primary-color);
        }

        .banner {
            margin-top: .0267rem;
            width: 10rem;
            height: 4.08rem;
        }
    </style>
</head>

<body>
    <div class="w">
        <div class="header">
            <a href="#" class="link">登录</a>
            <input type="text" placeholder="请输入搜索关键词">
            <img src="./images/categories.png" alt="">
        </div>
        <div class="nav">
            <a href="#" class="active">今日推荐</a>
            <a href="#">最后疯抢</a>
            <a href="#">美妆</a>
            <a href="#">母婴</a>
            <a href="#">国际</a>
            <a href="#">家电</a>
            <a href="#"><img src="./images/arrow_03.png" alt=""></a>
        </div>
        <img class="banner" src="./images/banner_02.png" alt="">
    </div>
</body>

</html>